<template>
  <div class="main">
    <div class="we"><span>通知公告</span></div>
    <div v-for="(item,index) in dataList" :key="index">
      <amt-tp :ListItem='item'></amt-tp>
    </div>
    <pagination-tp :dataForm="dataForm" @sendData='getData'></pagination-tp>
  </div>
</template>

<script>
import AmtTp from '../CommonTemplates/AmtTp.vue'
import PaginationTp from '../CommonTemplates/PaginationTp.vue'

export default {
  name: 'AllAnnouncements',
  components: {
    AmtTp,
    PaginationTp,
  },
  data () {
    return {
      // 传给分页器
      dataForm:{
        pageSize: 8,
        currentPage: 1,
        apiName: 'getnotice',
      },
      // 数据
      dataList: '',
    }
  },
  created() {
  
  },
  methods: {
    getData(val){
      this.dataList = val;
    }
  }
}
</script>

<style scoped>
.main{
  width: 1140px;
  margin: auto;
}
.we{
  display: flex;
  border-bottom: 2px solid skyblue;
  padding: 12px;
  font-size: 18px;
  font-weight: bold;
}
</style>
